package com.yuou.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yuou.mapper.RoleMapper;
import com.yuou.model.Role;
import com.yuou.service.RoleService;
@Service
public class RoleServiceImpl implements RoleService {
	@Autowired
	private RoleMapper roleMapper;
	@Override
	public List<Role> selectAll(Map<String, Object> map) {
		return roleMapper.selectAll(map);
	}
	@Override
	public int insertRole(Role role) {
		return roleMapper.insertRole(role);
	}
	@Override
	public int updateByPrimaryKey(Role role) {
		return roleMapper.updateByPrimaryKey(role);
	}
	@Override
	public Role selectByPrimaryKey(Integer id) {
		return roleMapper.selectByPrimaryKey(id);
	}

}
